<table class="table table-bordered table-hover table-striped">
	<tbody>
		<tr align="center">
			<td><strong>编号</strong></td>
			<td><strong>合同编号</strong></td>
			<td><strong>房间号</strong></td>
			<td><strong>姓名</strong></td>
			<td><strong>押金</strong></td>
			<td><strong>房租</strong></td>
			<td><strong>物业费</strong></td>
			<td><strong>水电气</strong></td>
			<td><strong>其他</strong></td>
			<td><strong>退款方式</strong></td>
			<td><strong>退款卡号</strong></td>
			<td><strong>合计</strong></td>
			<td><strong>操作人</strong></td>
			<td><strong>日期</strong></td>
			<td><strong>备注</strong></td>
		</tr>
		<?php if($list){ foreach($list as $k=>$ls){ ?>
		<tr align="center">
			<td><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
			<td>{$ls['contract']}</td>
			<td>{$ls['roomnumber']}</td>
			<td>{$ls['nickname']}</td>
			<td>{$ls['deposit']}</td>
			<td>{$ls['rent']}</td>
			<td>{$ls['property']}</td>
			<td>{$ls['water_power']}</td>
			<td>{$ls['other']}</td>
			<td><?php 
				switch($ls['pay_type']){
					case 0:
						echo '现金';
					break;
					case 1:
						echo '支付宝';
					break;
					case 2:
						echo '微信';
					break;
					case 3:
						echo '信用卡';
					break;
				}
			?></td>
			<td>{$ls['pay_card']}</td>
			<td>{$ls['acount']}</td>
			<td>{$ls['admin_nick']}</td>
			<td><?php echo date('Y-m-d H:i:s', $ls['createtime']);?></td>
			<td>{$ls['remark']}</td>
		</tr>
		<?php } }else{ ?>
		<tr align="center">
			<td colspan="20">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<div class="pagination" style="float: right; widht: 95%">
	<include file="Common/page" />
</div>
<script>
	$(document).ready(function(){
		$(".goback").on('click', function(){
			var id = $(this).attr('logid');
			$.post('__ACTION__', {id: id}, function(data){
				if(data/1 == 1){
					$("#log_"+ id).html('已退卡');
				}else{
					alert(data);
				}
			});
		})
	});
</script>